// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import 'styles/fonts/iconfont.css'
import 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'
import '@/assets/js/validate.js'

// 引入路由
import router from './router'
import Axios from 'axios'
import store from './store/order'

//引入 axios
Vue.prototype.$axios = Axios
//引入ele
//import ElementUI from 'element-ui'
//import 'element-ui/lib/theme-chalk/index.css'
//Vue.use(ElementUI)

// 分离开发时候使用，解决跨域的问题，上线时候设置HOST为空
Vue.prototype.HOST = '/admin'
//生产时候使用
Vue.prototype.HOST = ''

Vue.config.productionTip = false
window.eventBus = new Vue()

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
